import request from '@/utils/request'

/**
 * 查询分区
 */
export function getPartitions () {
  return request.get('/api/partition/list')
}

/**
 * 根据分区ID查询产品列表
 */
export function listProductsByPartitionId (partitionId) {
  return request.get(`/api/partition/list_products_by_partition_id/${partitionId}`)
}